package dao.mapper;
import java.sql.SQLException;
import java.util.List;

import entity.ColortbEntity;
/**
 *@author JiangFan
 */
public interface ColortbDAOI {

    /**
     * @param color_name 根据颜色名查询颜色列表是否存在该颜色
     * @return
     */
    ColortbEntity selectColorOne (String color_name) throws SQLException, ClassNotFoundException;

    /**
     * @return 查询所有颜色列表信息
     */
    List<ColortbEntity> selectColorAll ()
            throws ClassNotFoundException, SQLException, InstantiationException, IllegalAccessException;

    /**
     * @param ce 在颜色列表添加颜色值
     *
     * @return
     */
    int insertColor (ColortbEntity ce) throws SQLException, ClassNotFoundException;

    /**
     * @return
     */
}